import { GameManager, RpsServiceData } from 'db://assets/scripts/GameManager';

export class DataManager {
  static _instance: DataManager | null = null;
  static get instance() {
    if (!DataManager._instance) {
      DataManager._instance = new DataManager();
    }
    return DataManager._instance;
  }
  constructor() {}

  GameManager: GameManager | null = null;
  gameData: RpsServiceData | null = null;
  role: string = '';

  init(gameData: any) {
    this.gameData = gameData;
  }
  updateGameData(gameData: RpsServiceData) {
    this.gameData = gameData;
  }
}
